package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@Data
@NoArgsConstructor
public class Following {
    Integer id;
    Integer uId;//	用户id	外键
    Integer friendId;//关注对象的id	外键
    @TableField(value = "create_time",fill = FieldFill.INSERT)

    LocalDateTime createTime;        //创建时间
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    LocalDateTime updateTime;        //修改时间
}
